//引入请求函数
import request from "@/utils/request.ts";
import { requestHttp } from "@/utils/request.ts";

//引入类型约束
import type { productClassificationResponseDataType, productClassificationIncludeProductResponseDataType } from "./type.ts";


/**
 * 获取所有的商品分类信息
 */
export const reqProductClassification = () => {
    return requestHttp<productClassificationResponseDataType>({
        url:"/reception/classification",
        method:"get"
    })
}

/**
 * 获取分类下的商品信息
 */
export const reqAllProductClassificationIncludeProductInfo = () => {
    return requestHttp<productClassificationIncludeProductResponseDataType>({
        url:"/reception/classification/product",
        method:"get"
    })
}